package stool.statepattern;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/8
 */
public class Work {

    private Integer hour;

    private boolean finish = false;

    private State current;

    public Work() {
        current = new RestState();
    }

    public void work() {
        current.work(this);
    }

    public Integer getHour() {
        return hour;
    }

    public void setHour(Integer hour) {
        this.hour = hour;
    }

    public boolean isFinish() {
        return finish;
    }

    public void setFinish(boolean finish) {
        this.finish = finish;
    }

    public State getCurrent() {
        return current;
    }

    public void setCurrent(State current) {
        this.current = current;
    }
}
